using Aurora.TaskScheduler.Abstractions.BaseModel;

namespace Aurora.TaskScheduler.Abstractions;

/// <summary>
/// 用于绑定任务的基础接口
/// </summary>
public interface ITaskJob<in T>
{
    /// <summary>
    /// 执行服务
    /// </summary>
    /// <param name="parameter">参数</param>
    /// <returns></returns>
    Task<JobResult> ExecuteAsync(T parameter);
}